package com.ruoyi.houseInformation.service.impl;

import java.util.List;

import com.ruoyi.houseInformation.domain.HouseDoorInformation;
import com.ruoyi.houseInformation.mapper.HouseDoorInformationMapper;
import com.ruoyi.houseInformation.service.IHouseDoorInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 身份认证Service业务层处理
 * 
 * @author lijie
 * @date 2023-07-25
 */
@Service
public class HouseDoorInformationServiceImpl implements IHouseDoorInformationService
{
    @Autowired
    private HouseDoorInformationMapper houseDoorInformationMapper;

    @Transactional
    @Override
    public int updateStsById(Long[] ids,HouseDoorInformation houseDoorInformation)
    {
        for(Long id:ids){
            houseDoorInformation.setId(id);
            houseDoorInformationMapper.updateStsById(houseDoorInformation);
        }
        return 1;
    }

    /**
     * 查询身份认证列表
     * 
     * @param houseDoorInformation 身份认证
     * @return 身份认证
     */
    @Override
    public List<HouseDoorInformation> selectHouseDoorInformationList(HouseDoorInformation houseDoorInformation)
    {
        return houseDoorInformationMapper.selectHouseDoorInformationList(houseDoorInformation);
    }

}
